package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcCsunSleepConfig;
import com.csun.cmny.provider.model.dto.csunsleep.SleepConfigAndThresholdDto;
import com.csun.cmny.provider.model.vo.csunsleep.SleepConfigAndThresholdVO;

public interface DmcCsunSleepConfigService extends IService<DmcCsunSleepConfig> {

    /**
     * 保存或更新
     * @date 2020/1/15 10:39
     * @param csunSleepConfig
     * @return com.csun.cmny.provider.service.DmcCsunSleepConfigService
     */
    int saveOrUpdate(DmcCsunSleepConfig csunSleepConfig);

    /*
    * 批量床垫配置阈值
    * */
    int setCsunSleepConfigAndThreshold(SleepConfigAndThresholdDto dto, LoginAuthDto loginAuthDto);

    /*
    * 查询床垫配置阈值
    * */
    SleepConfigAndThresholdVO getCsunSleepConfigAndThreshold(Long deviceId);
}
